package io.renren.common.page;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * @author txb
 */
@Data
@Schema(description = "分页对象")
public class BasePage implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "当前页码，从1开始")
    private Integer page = 1;

    @Schema(description = "每页显示记录数")
    private Integer limit = 10;

    @Schema(description = "排序字段")
    String orderField;

    @Schema(description = "排序方式，可选值(asc、desc)")
    String order = "order";
}